<div id="tiga_ba">
	<div id="tiga_baa">Pindah Data Kabupaten</div>
	<div id="tiga_bab"></div>
	<div class="clear"></div>
</div>
<?php
$id = $_GET['id'];
$sql="select * from kabupaten where id_kabupaten = '$id'";
$qry=mysql_query($sql);
$hasil=mysql_fetch_array($qry);
?>
<form action="utama.php?module=mod_kabupaten&act=hapus2" onsubmit="return confirm('Anda yakin akan memindah data ?')" method="post" enctype="multipart/form-data">
	<table style="margin: 10px 15px 10px 15px;">
		<tr>
			<td>Kabupaten</td>
			<td>&nbsp;</td>
			<td>
				<input name="nama" type="text" class="input" id="nama" value="<?php echo "$hasil[kabupaten]";?>" disabled/>
				<input name="id" type="hidden" value="<?php echo $id;?>">
			</td>
		</tr>
		<tr>
			<td><b>Pindah ke</b></td>
			<td><b>:</b></td>
			<td></td>
		</tr>
		<tr>
			<td>Provinsi </td>
			<td>&nbsp;</td>
			<td>
				<select name="provinsi" id="provinsi" class="input">
					<option value=""> - - Pilih Provinsi - - </option>
					<?php
						$prov = mysql_query("select * from propinsi where aktif = 'Y'");
						while($p = mysql_fetch_array($prov)){
							echo "<option value=$p[id_propinsi]>$p[propinsi]</option>";
						}
					?>
				</select>
			</td>
		</tr>
		<tr>
			<td>Kabupaten </td>
			<td>&nbsp;</td>
			<td>
				<span id="kabupaten">
				<select name="transfer" id="transfer" class="input">
					<option value=""> - - Pilih Kabupaten - - </option>
					<?php
						$data = mysql_query("select id_kabupaten,kabupaten from kabupaten where aktif = 'Y' and id_kabupaten <> $id");
						while($hasil = mysql_fetch_array($data)){
							echo "<option value=$hasil[id_kabupaten]>$hasil[kabupaten]</option>";
						}
					?>
				</select>
				</span>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td><input name="submit" type="submit" class="button" value="Proses" /></td>
		</tr>
	</table>
</form>